home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
PASCALL
/
TEMPJUNK
/
TESTER.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1992-11-28
|
368b
|
22 lines
program test;
uses
crt;
var
num:longint;
function tester(num:longint):longint;
begin
num:=abs(num-13);
num:=30*(num+2)+45;
if num<0 then num:=num+360;
if num>360 then num:=num-360;
tester:=num;
end;
begin
clrscr;
for num:=1 to 12 do
begin
writeln(num:10,tester(num):20);
end;
end.